#coding:utf-8
from django.conf.urls import patterns


urlpatterns = patterns('lovewith.supplier.views',
    #服务商主页
    (r'^(?P<user_id>\d+)/$', 'supplier.supplier_home'),
     #关于
    (r'^(?P<user_id>\d+)/about/$', 'supplier.about_supplier'),

    #服务商列表
    (r'^list/(?P<service_id>[\w\d]+)/', 'supplier.show_list'),
    #成为服务商
    (r'^join/', 'supplier.join_supplier'),

    #ajax
    (r'^ajax/g/get_supplier_list/', 'ajax.get_supplier_list'),
    #根据帖子的服务类型及地区获取服务商
    #(r'^ajax/g/get_by_image/', 'ajax.get_by_image'),
    #增加预约记录
    (r'^ajax/p/add_reserve/', 'ajax.add_reserve'),

    #上传商家banner
    (r'^ajax/p/upload_banner/', 'ajax.upload_supplier_banner'),
    #保存商家banner
    (r'^ajax/p/save_banner/', 'ajax.save_supplier_banner'),

    #删除商家分类
    (r'^ajax/g/del_supplier_service/', 'ajax.del_supplier_service'),
)